<?php
    class Page_model extends CI_Model
    {
        var $table = "db_page";
        function __construct()
        {
            parent::__construct();
        }
        function list_page()
        {
            $this->db->order_by("order_page", "asc"); 
            return $this->db->get($this->table)->result();
            
        }
        function get_by_page($id)
        {
            $this->db->where('url_page',$id);
            return $this->db->get($this->table)->row();   
        }
    }
?>